package com.aaa.mapper.front;

import com.aaa.entity.FrontUserinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface FrontUserinfoMapper {
    //注册
    int doAddByUser(FrontUserinfo frontUserinfo);
    //校验用户名
    List<Map<String,Object>> findByEmail(String frontUserEmail);
    //登陆
    FrontUserinfo login(@Param("frontUserEmail") String frontUserEmail, @Param("frontUserPwd") String frontUserPwd);

    //根据Id个人资料
    FrontUserinfo findByUserInfoId(Integer UserInfoId);
    //修改个人资料
    int doUpdate(FrontUserinfo frontUserinfo);
}
